class CreateGroups < ActiveRecord::Migration
  def self.up
    create_table "groups" do |t|
		t.string "name", :limit => 20,  :null => false
		t.string "desc", :limit => 200, :null => false
		t.column :created_at, :datetime
	  end
	  #Group.create :name => "Guest", :desc => "Guest User"
	  #Group.create :name => "Admin", :desc => "Admin Group"
	  execute "INSERT INTO groups (`name`, `desc`) VALUES ('Guest', 'Default Group for New Account')"
	  execute "INSERT INTO groups (`name`, `desc`) VALUES ('Admin', 'Administrator Group')"

  end

  def self.down
    drop_table :groups
  end
end
